package com.ruoyi.easyfame.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 买家需求对象 tb_demands
 * 
 * @author xhb
 * @date 2025-08-27
 */
public class Demands extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 买家用户ID，对应 sys_user.user_id */
    @Excel(name = "买家用户ID，对应 sys_user.user_id")
    private Long buyerId;

    /** 需求标题 */
    @Excel(name = "需求标题")
    private String title;

    /** 需求描述 */
    @Excel(name = "需求描述")
    private String description;

    /** 产品类型（如蔬菜、水果） */
    @Excel(name = "产品类型", readConverterExp = "如=蔬菜、水果")
    private String productType;

    /** 数量 */
    @Excel(name = "数量")
    private Long quantity;

    /** 单位（如公斤、吨） */
    @Excel(name = "单位", readConverterExp = "如=公斤、吨")
    private String unit;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal pricePerUnit;

    /** 采购地点 */
    @Excel(name = "采购地点")
    private String location;

    /** 状态 */
    @Excel(name = "状态")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setBuyerId(Long buyerId) 
    {
        this.buyerId = buyerId;
    }

    public Long getBuyerId() 
    {
        return buyerId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setProductType(String productType) 
    {
        this.productType = productType;
    }

    public String getProductType() 
    {
        return productType;
    }

    public void setQuantity(Long quantity) 
    {
        this.quantity = quantity;
    }

    public Long getQuantity() 
    {
        return quantity;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }

    public void setPricePerUnit(BigDecimal pricePerUnit) 
    {
        this.pricePerUnit = pricePerUnit;
    }

    public BigDecimal getPricePerUnit() 
    {
        return pricePerUnit;
    }

    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buyerId", getBuyerId())
            .append("title", getTitle())
            .append("description", getDescription())
            .append("productType", getProductType())
            .append("quantity", getQuantity())
            .append("unit", getUnit())
            .append("pricePerUnit", getPricePerUnit())
            .append("location", getLocation())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
